package com.warm.satoken.config;

import cn.dev33.satoken.dao.SaTokenDao;
import cn.dev33.satoken.dao.SaTokenDaoRedissonJackson;
import org.noear.solon.annotation.Bean;
import org.noear.solon.annotation.Configuration;
import org.redisson.api.RedissonClient;

@Configuration
public class SaTokenConfig {


    /**
     * 构建 SaTokenDao
     */
    @Bean
    public SaTokenDao saTokenDaoInit(RedissonClient redissonClient) {
        return new SaTokenDaoRedissonJackson(redissonClient);
    }
}
